
<?php
/*
 * 手机客户端 大赛列表接口
 * 传入参数 
 * 2014-02-20
 */
include "inc/public_header.php";
 


 $hd_id			= $_REQUEST["hd_id"];			//活动主键
$reJson = array();//构建返回值
$reJson["success"]="1";
/**
if($HD_ID==3){
$bsx_sql = "select id,aname from new_weituo_bsxfenlei order by aindex asc";
$db1->query($bsx_sql);
$fenleiArr = array(); //白沙溪分类数据数组
while($db1->next_record()){
	$fenleiArr[] = array(
	//"id"=>$db1->f("id"),
	"name"=>$db1->f("aname"));
	}
}else{
$xx_sql = "select id,aname from new_weituo_fenlei order by aindex asc";
$db->query($xx_sql);
$fenleiArr = array(); //分类数据数组
	while($db->next_record()){
		$fenleiArr[] = array(
		//"id"=>$db->f("id"),
		"name"=>$db->f("aname"));
		}
}
//$reJson["category"]= $fenleiArr;
**/


if($hd_id==3){
$fenlei=array("天之龙","地之龙","人之龙","和之龙","999g金砖","599g金砖","159g金砖","巨龙擎天","金饼天之龙","金饼","金雪芽","金系列logo");

}else if($hd_id==1){
$fenlei=array("陶瓷","雕塑","瓷板","创意设计","油画","水彩","装置","素描","摄影","影像","其他");
}else if($hd_id==7){
$fenlei=array("陶瓷","雕塑","瓷板","创意设计","油画","水彩","装置","素描","摄影","影像","其他");
}else if($hd_id==4){
$fenlei=array("手表","表壳","表盘","表带","表盒","表扣");
}else{
$fenlei=array("陶瓷","雕塑","瓷板","其他");
}
$reJson["category"]=$fenlei;

$reJson["canAuction"]="1";
echo json_encode($reJson);
?>